home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
c
/
cl_7_bug.zip
/
BUG_5.C
< prev
next >
Wrap
C/C++ Source or Header
|
1992-10-07
|
713b
|
22 lines
/*
Tests programs with #pragmas can't be compiled without /Oi switch.
I like to put a pragma around some code for testing purposes.
But now I can't compile without optimizing for example codeview
without removing theese pragmas.
The actual problem is because intrisinic strlen() can't be trusted,
I'd like to put "#pragma function (strlen)" in my header file but I can't
do it if I should want to sometimes compile without optimizing (to find
more buggs).
*/
#include <stdio.h>
#pragma function (strlen) /* This dosent work without /Oi */
#pragma intrinsic (strlen) /* This dosent work without /Oi */
int main(int argc,char *argv[])
{
puts("I am alive");
return(0);
}